export const loadRefreshJS = {
  data () {
    return {
      // 当前页
      currentPage: 1,
      // 每页条数
      perPage: 10,
      // 列表数据
      tableData: []
    }
  },
  methods: {
    // 重新加载 动态
    downRefreshFn () {
      this.currentPage = 1
      this.getDataListFn()
      uni.stopPullDownRefresh()
    }
  },
  onReachBottom () {
    this.currentPage++
    this.getDataListFn()
  },
  onPullDownRefresh () {
    this.downRefreshFn()
  }
}
